/*
 * include/mach/gx3110_dbgu.h
 *
 * Copyright (C) 2005 Ivan Kokshaysky
 * Copyright (C) SAN People
 *
 * Debug Unit (DBGU) - System peripherals registers.
 * Based on AT91RM9200 datasheet revision E.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef GX3110_DBGU_H
#define GX3110_DBGU_H

#endif

#define GX3110_UART_SCICR		0
#define GX3110_UART_SCISR		0x04
#define GX3110_UART_SCIDR		0x08
#define GX3110_UART_SCIBR		0x0c

#define SCISR_TDRE				(1 << 7)
#define SCISR_TC				(1 << 6)
#define SCISR_RDRF				(1 << 5)
#define SCISR_ORF				(1 << 4)
#define SCISR_NF				(1 << 3)
#define SCISR_FE				(1 << 2)
#define SCISR_PER				(1 << 1)
#define SCISR_RAF				(1 << 0)

#define SCICR_IE				(1 << 15)
#define SCICR_TIE				(1 << 14)
#define SCICR_TCIE				(1 << 13)
#define SCICR_RIE				(1 << 12)
#define SCICR_TE				(1 << 10)
#define SCICR_RE				(1 << 9)
#define SCICR_FL				(1 << 6)
#define SCICR_PE				(1 << 5)
#define SCICR_PY				(1 << 4)
#define SCICR_STOP				(1 << 2)

#define MINOR_START 5
#define IRQ_GXUART_RX0 55
#define IRQ_GXUART_RX1 56
#define PORT_GX3110 297
#define SYS_CLK		54000000UL

#define GX3110_S_UART1                        0
#define GX3110_VA_UART1_BASE_SYS              0xe0000000
#define GX3110_UART1_BASE_SYS                 0x20000000
#define GX3110_UART1_SIZE                     SZ_4K
